package com.github.catvod.spider.merge;

/* loaded from: classes.dex */
public class Qg {
    private final boolean j;
    private final boolean q;
    public static final Qg h = new Qg(false, false);
    public static final Qg V0 = new Qg(true, true);

    public Qg(boolean z, boolean z2) {
        this.j = z;
        this.q = z2;
    }

    public boolean I() {
        return this.j;
    }

    QF V0(QF qf) {
        if (qf != null && !this.q) {
            qf.PU();
        }
        return qf;
    }

    public String h(String str) {
        String trim = str.trim();
        return !this.q ? AR.h(trim) : trim;
    }

    public String j(String str) {
        String trim = str.trim();
        return !this.j ? AR.h(trim) : trim;
    }

    public boolean q() {
        return this.q;
    }
}
